<template>
  <div>
     <router-view></router-view>
    <van-tabbar v-model="active" active-color="red">
      <van-tabbar-item icon="wap-home-o" to="/">首页</van-tabbar-item>
      <van-tabbar-item icon="apps-o" to="fenlei">分类</van-tabbar-item>
      <van-tabbar-item icon="cart-o" to="gouwuche">购物车</van-tabbar-item>
      <van-tabbar-item icon="user-o" to="geren">个人</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "",
  data() {
    return {
      active: 0
    };
  },

  //生命周期 - 创建完成（访问当前this实例）
  created() {},
  //生命周期 - 挂载完成（访问DOM元素）
  mounted() {}
};
</script>
<style scoped>
/* @import url(); 引入css类 */
</style>